globalConfig.app.config(function ($stateProvider) { 
    $stateProvider
        .state('home',{
            url:'/home',
            templateUrl: 'app/home/views/home.html',
            controller: 'homeCtrl',
            resolve: {
                load: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'app/home/ctrl/homeCtrl.js',
                    ]);
                }]
            }
        })
        .state('home_list',{
            url:'/home_list',
            templateUrl: 'app/home/views/list.html',
            controller: 'homelistCtrl',
            resolve: {
                load: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'app/home/ctrl/listCtrl.js',
                    ]);
                }]
            }
        })
        .state('addpost',{
            url:'/addpost',
            templateUrl: 'app/home/views/add_post.html',
            controller: 'addPostCtrl',
            resolve: {
                load: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'app/home/ctrl/addPostCtrl.js',
                    ]);
                }]
            }
        })
        .state('detailpost',{
            url:'/detailpost',
            templateUrl: 'app/home/views/detail_post.html',
            controller: 'detailPostCtrl',
            resolve: {
                load: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'app/home/ctrl/detailPostCtrl.js',
                    ]);
                }]
            }
        })

        
        
});
